<{include file="admin/admin_head.html"}>
<body>
	<{include file="admin/admin_nav.html"}>
	<h1>文章管理</h1>
	<div id="art-list">
		<ul>
			<li class="list-head">
				<span>
					<input type="checkbox" id="check-all" />
				</span>
				<span>ID</span>
				<span>标题</span>
				<span>所属分类</span>
				<span>发布时间</span>
				<span>操作</span>
			</li>
			<{if $list}>
			<{foreach from=$list item=art}>
			<li>
				<span>
					<input type="checkbox" id="check-all" />
				</span>
				<span><{$art.id}></span>
				<span><{$art.title}></span>
				<span><{$art.cat_name}></span>
				<span><{$art.addtime|date_format:"%Y-%m-%d %H:%M"}></span>
				<span>
					<a href="article.php?action=editArticle&id=<{$art.id}>" class="edit_art">修改</a>
					<a href="article.php?action=delArticle&id=<{$art.id}>" class="del_art">删除</a>
				</span>
			</li>
			<{/foreach}>
			<{/if}>
		</ul>
	</div>
<script type="text/javascript">
$(document).ready(function(){
	$(".del_art").click(function(){
		return confirm("确定要删除该文章吗？");
	})
})
</script>
</body>
</html>